package com.cskaoyan.mall.service.mall;

import com.cskaoyan.mall.dao.mall.MallGoodsDao;
import com.cskaoyan.mall.dao.mall.MallGoodsDaoImpl;
import com.cskaoyan.mall.model.bo.mall.AskGoodsMsgBO;
import com.cskaoyan.mall.model.vo.mall.GetGoodsCommentVO;
import com.cskaoyan.mall.model.vo.mall.GetGoodsInfoVO;
import com.cskaoyan.mall.model.vo.mall.GetGoodsMsgVO;
import com.cskaoyan.mall.model.vo.mall.SearchGoodsVO;

import java.util.List;

public class MallGoodsServiceImpl implements MallGoodsService{
    MallGoodsDao mallGoodsDao = new MallGoodsDaoImpl();
    @Override
    public List<SearchGoodsVO> searchGoods(String keyword) {
        return mallGoodsDao.searchGoods(keyword);
    }

    @Override
    public GetGoodsInfoVO getGoodsInfo(String id) {
        return mallGoodsDao.getGoodsInfo(id);
    }

    @Override
    public List<GetGoodsMsgVO> getGoodsMsg(String id) {
        return mallGoodsDao.getGoodsMsg(id);
    }

    @Override
    public int askGoodsMsg(AskGoodsMsgBO msg) {
        return mallGoodsDao.askGoodsMsg(msg);
    }

    @Override
    public GetGoodsCommentVO getGoodsComment(String id) {
        return mallGoodsDao.getGoodsComment(id);
    }
}
